package com.yanqu.road.entity.scene;

/**
 * 记录玩家所在场景
 */
public class UserSceneGroup {

    private int activityId;
    private int groupId;
    private int sceneType; // eSceneType
    private String sceneId;
    private long userId;
    private ScenePlayerInfo playerSceneInfo;
    private long updateTime;
    private boolean isRemoveOldScene;

    public UserSceneGroup(int activityId, int groupId, int sceneType, String sceneId, long userId, ScenePlayerInfo playerSceneInfo, long updateTime) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.sceneType = sceneType;
        this.sceneId = sceneId;
        this.userId = userId;
        this.playerSceneInfo = playerSceneInfo;
        this.updateTime = updateTime;
        this.isRemoveOldScene = true;
    }

    public UserSceneGroup(int activityId, int groupId, int sceneType, String sceneId, long userId, ScenePlayerInfo playerSceneInfo, long updateTime, boolean isRemoveOldScene) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.sceneType = sceneType;
        this.sceneId = sceneId;
        this.userId = userId;
        this.playerSceneInfo = playerSceneInfo;
        this.updateTime = updateTime;
        this.isRemoveOldScene = isRemoveOldScene;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public boolean isRemoveOldScene() {
        return isRemoveOldScene;
    }

    public void setRemoveOldScene(boolean removeOldScene) {
        isRemoveOldScene = removeOldScene;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getSceneType() {
        return sceneType;
    }

    public void setSceneType(int sceneType) {
        this.sceneType = sceneType;
    }

    public String getSceneId() {
        return sceneId;
    }

    public void setSceneId(String sceneId) {
        this.sceneId = sceneId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public ScenePlayerInfo getPlayerSceneInfo() {
        return playerSceneInfo;
    }

    public void setPlayerSceneInfo(ScenePlayerInfo playerSceneInfo) {
        this.playerSceneInfo = playerSceneInfo;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }
}
